package com.zhang.service.Circular_dependency;


import com.myspring.anno.MyAutowired;
import com.myspring.anno.MyComponent;

@MyComponent
public class ClassB {

    @MyAutowired
    private ClassA classA;

    public ClassB() {
//        System.out.println("ClassB 实例化========[构造执行] : " + this);
    }

    public ClassA getClassA() {
        return classA;
    }

    public void setClassA(ClassA a) {
        this.classA = a;
//        System.out.println("ClassB 中的 a 属性: " + a.getClass() + " (哈希码: " + a.hashCode() + ")");

    }


    public void test() {
        System.out.println("ClassB.test()");
    }

}
